package com.guoxin.chapter3.waitnotify.producerconsumerallwaitfix;

/**
 * @author guoxin
 * @date 2019年8月22日
 */
public class ThreadC extends Thread {
	private Consumer consumer;

	public ThreadC(Consumer consumer) {
		super();
		this.consumer = consumer;
	}
	
	@Override
	public void run() {
		while (true) {
			consumer.getValue();
		}
	}
}
